package com.topone.config;

import org.dozer.DozerBeanMapper;
import org.springframework.context.annotation.*;
import java.util.Arrays;
import java.util.List;

@Configuration
public class JPAConfig {

    @Bean(name = "daoDozerBeanMapper")
    public DozerBeanMapper daoDozerBeanMapper() {
        List<String> mappingFiels = Arrays.asList("dao-mapping.xml");
        DozerBeanMapper dozerBeanMapper = new DozerBeanMapper();
        dozerBeanMapper.setMappingFiles(mappingFiels);
        return dozerBeanMapper;
    }

}
